import React, { Component } from 'react'
import { Pagination } from 'antd';
export default class MyPagination extends Component {
    onShowSizeChange = (current, pageSize) => {
    }
    pageClick = (current, pageSize) => {
        console.log(current, pageSize)
        this.props.myCurrent(current,pageSize)
    }
    render() {
        const { current,total,pageSize } = this.props;
        return (
            <div>
                <Pagination
                    current={current}
                    showSizeChanger
                    pageSize={pageSize}
                    onShowSizeChange={this.onShowSizeChange}
                    total={total}
                    onChange={this.pageClick}
                />
            </div>
        )
    }
}
